package com.ruicar.afs.cloud.risk.tortoise.dto.response.apply;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruicar.afs.cloud.risk.tortoise.anno.RefData;
import com.ruicar.afs.cloud.risk.tortoise.dto.response.GwtRefData;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/07/27 18:38
 */
@Data
@AllArgsConstructor
@Builder
@ApiModel("紧急联系人信息 - caurgentparty")
public class GwtContact extends GwtRefData implements Serializable {

    /**
     * User code
     */
    @JsonInclude
    @JSONField(name = "usercode")
    @JsonProperty("usercode")
    private String userCode;

    /**
     * Id card
     */
    @JsonInclude
    @JSONField(name = "card")
    @JsonProperty("card")
    private String idCard;

    /**
     * Name
     */
    @JsonInclude
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    /**
     * Phone
     */
    @JsonInclude
    @JSONField(name = "phone")
    @JsonProperty("phone")
    private String phone;

    /**
     * Company name
     */
    @JsonInclude
    @JSONField(name = "company")
    @JsonProperty("company")
    private String companyName;

    /**
     * Live address
     */
    @JsonInclude
    @JSONField(name = "homeaddress")
    @JsonProperty("homeaddress")
    private String liveAddress;

    /**
     * Company phone
     */
    @JsonInclude
    @JSONField(name = "companyphone")
    @JsonProperty("companyphone")
    private String companyPhone;

    /**
     * Relation
     */
    @JsonInclude
    @RefData(dicKey = "custRelation")
    @JSONField(name = "relationship")
    @JsonProperty("relationship")
    private String relation;

    /**
     * Month income
     */
    @JsonInclude
    @JSONField(name = "income")
    @JsonProperty("income")
    private BigDecimal monthIncome;

}
